<!-- 订单退款申请 -->
<template>
	<view class="page">
		<!-- 主页 -->
		<Main v-if="!typeIndex" @on-change-type="handleChangeType"></Main>

		<!-- 退款/退货 -->
		<Refund v-if="typeIndex" :type-index="typeIndex"></Refund>
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	import Main from './components/main.vue';
	import Refund from "./components/refund.vue";

	const typeIndex = ref('');

	// 选择显示类型
	const handleChangeType = (value) => {
		typeIndex.value = value;
	}
</script>

<style lang="scss" scoped>
</style>